package com.javalab._7thread._1Create._1Thread;

/**
 * 继承Thread的方式编写线程类
 */
public class MyThread extends Thread {
    @Override
    public void run() {
        System.out.println("i am a thread, my name is " + Thread.currentThread().getName());
    }
}
